import type { sendCustomType, SimulatorSendProperty } from './model';

import { requestClient } from '#/api/request';

// 发送属性消息到设备
export function sendProperty(data: SimulatorSendProperty) {
  return requestClient.postWithMsg(`/iot/message/sendProperty`, data);
}

// 发送自定义消息到设备
export function sendCustom(data: sendCustomType) {
  return requestClient.postWithMsg(`/iot/message/sendCustom`, data);
}
